package cn.jdw.shop.product.mapper;

import cn.jdw.shop.product.entity.Commodity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ListJiang
 * @since 2021-09-29
 */
public interface CommodityMapper extends BaseMapper<Commodity> {

    /**
     * @param id
     * @return
     */
    @Select(value = """
            select id,
                   tsmemory_size,
                   dimension_capacity,
                   dimension_screen_size,
                   version,
                   dimension_color,
                   remark,
                   price,
                   deleted
            FROM commodity
            WHERE id = #{id}
            """)
    Commodity test(@Param(value = "id") String id);

}